package com.bingbing.back.mapper;

import com.bingbing.back.bean.User;
import com.bingbing.back.dto.AdminInfoDto;
import com.bingbing.back.dto.ConsultInfoDto;
import com.bingbing.back.po.AdminInfo;
import com.bingbing.back.po.ConsultInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConsultInfoMapper {
    //根据咨询师账号删除
    int delete(Integer consultId);
    //根据输入的条件查询咨询师
    List<ConsultInfo> findByParam(ConsultInfoDto dto);

    List<ConsultInfo> selectAllConsult();

    ConsultInfo selectUserByName(@Param("consultName") String consultName);

    ConsultInfo selectUserByNameAndPassword(@Param("consultName") String consultName,@Param("consultPwd") String consultPwd);

    ConsultInfo selectByPrimaryKey(Integer consultId);

    String selectByConsultName(String consultName);

    List<ConsultInfo> getCloudList(@Param("list") List<Integer> list);
    // 返回可用的咨询师
    List<ConsultInfo> showAbleConsult();
}
